package com.ehotting.mqbd.core.logger;

import org.slf4j.MDC;

public class LOGGER_KEY {


    public final static String SERIAL = "_serial";
    public final static String START_TIME = "_startTime";
    public final static String COST_TIME = "costTime";
    public final static String REQUEST = "request";
    public final static String RESPONSE = "response";
    public final static String FUNCTION = "_action";
    public final static String EXCEPTION = "exception";
    public final static String MODULE = "module";
    public final static String TRACE_ID = "TRACE_ID";

    public final static String URL = "url";



    public static void clear(){
        String module = MDC.get(LOGGER_KEY.MODULE);
        String traceId = MDC.get(LOGGER_KEY.TRACE_ID);
        MDC.clear();
        MDC.put(LOGGER_KEY.MODULE,module);
        MDC.put(LOGGER_KEY.TRACE_ID,traceId);
    }





}
